package com.manage.usermanage.controller;

import com.manage.usermanage.common.core.AjaxResult;
import com.manage.usermanage.domain.entity.User;
import com.manage.usermanage.service.IUserService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginUserController {

    @Resource
    private IUserService userService;

    @PostMapping("/loginUser")
    public AjaxResult loginUser(@RequestBody User user) {
        int count = userService.loginUser(user);
        return null;
    }
}
